package com.dex4d.ui.demo;

import android.os.Bundle;

import com.dex4d.core.BaseActivityPresenter;
import com.dex4d.delegate.FragmentContainerDelegate;


/**
 * Created by chengyuchun on 2017/3/7.
 *
 * 一个activity只包含一个Fragment的写法,即使用FragmentContainerDelegate
 */
public class DemoContainerActivity extends BaseActivityPresenter<FragmentContainerDelegate> {
    @Override
    protected Class<FragmentContainerDelegate> getDelegateClass() {
        return FragmentContainerDelegate.class;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        viewDelegate.addFragment(new DemoListFragmentPresenter());
    }

    @Override
    public void initVariables() {

    }

    @Override
    public void loadData() {

    }
}